import request from '@/utils/request';

/**
 * 获举报数据列表
 * @returns {Promise<any>}
 */
export const getReport = async () => {
  return request('/admin/reports?include=user');
};

/**
 * 修改举报的状态reject
 * @returns {Promise<any>}
 */
export const editReportStatus = async (id,data) => {
  return request.patch(`/admin/reports/${id}/status?status=` + data);
};

/**
 * 修改举报的状态reject
 * @returns {Promise<any>}
 */
export const editReject = async (id,data) => {
  return request.patch(`/admin/reports/${id}/status`,{data});
};

